<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * The Minifesto declares all the apps that we have in APPSPATH, each app needs
 * to have its own folder with a <APP>.php and Controllers, Models, Views directories.
 * EX:
 * Apps
 * |_ Cms
 *      |_ Cms.php
 *      |_ Controllers
 *          |_ ControllerA.php
 *          |_ ControllerB.php
 *      |_ Models
 *          |_ ModelA.php
 *          |_ ModelB.php
 *      |_ Views
 *          |_ ViewA.php
 *          |_ ViewB.php
 * |_ Blog
 *      |_ Blog.php
 *      |_ Controllers
 *          |_ ControllerA.php
 *          |_ ControllerB.php
 *      |_ Models
 *          |_ ModelA.php
 *          |_ ModelB.php
 *      |_ Views
 *          |_ ViewA.php
 *          |_ ViewB.php
 *       
 * All the apps must be namespaced. (maybe implement their own autoloader..??)
 */

$DefaultApp = 'KeDesk';

/**
 * The $app array just contains all the necessary information about the app. It
 * must have
 * 'AppName' => 'Name' The app's name
 * 'AppKernel' => APPSPATH.'Name/Name.php' The main app .php file 
 * 'DefaultAction' => '<action>' The main method to call
 */
$app = Array(
    'KeDesk' => Array(
        'AppName' => 'KeDesk',
        'AppKernel' => APPSPATH.'KeDesk/KeDesk.php',
        'AppPath' => APPSPATH.'KeDesk'.DS,
        'AppRsrc' => APPS.'KeDesk/Rsrc/',
        'DefaultAction' => 'Index',
        'AppRouter' => TRUE,
        'BaseUrl' => 'http://localhost/kesillo/'
    ),
    'KeShipping' => Array(
        'AppName' => 'KeShipping',
        'AppKernel' => APPSPATH.'KeShipping/KeShipping.php',
        'AppPath' => APPSPATH.'KeShipping'.DS,
        'DefaultAction' => 'Index'
    )
);
